package com.chengshuang.log.domain;

import java.util.Date;

/**
 * @author shuang.cheng
 * @date 2022/10/13
 * @description
 */
public class OperationLog {

    /**
     * 主键id
     */
    private Long id;
    /**
     * 日志类型
     *
     */
    private Integer type;
    /**
     * 关联主键id
     */
    private Long relationId;
    /**
     * 操作人id
     */
    private Long operatorId;
    /**
     * 操作时间
     */
    private Date operateTime;
    /**
     * 操作说明
     */
    private String description;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "OperationLog{" + "id=" + id + ", type=" + type + ", relationId=" + relationId + ", operatorId="
            + operatorId + ", operateTime=" + operateTime + ", description='" + description + '\'' + '}';
    }
}
